class Outer{
    int date1=1;
    int date2=2;
    static int date3=3;
   static class InnerClass{
        int date4=4;
        int date5=5;
        public static void fun(){
            Outer outer=new Outer();
             Outer.InnerClass  innerClass=new Outer.InnerClass();
            System.out.println(innerClass.date4);
            System.out.println(innerClass.date5);
            System.out.println(outer.date1);
            System.out.println(outer.date2);
            System.out.println(date3);
        }
       public  void fun1(){
           Outer outer=new Outer();
           System.out.println(date4);
           System.out.println(date5);
           System.out.println(outer.date1);
           System.out.println(outer.date2);
           System.out.println(date3);

       }
    }
}
public class Test {
    public static void main(String[] args) {
        Outer.InnerClass inn=new Outer.InnerClass();
          Outer.InnerClass.fun();
        System.out.println("-----------------------");
       inn.fun1();
    }
}
